﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HZ.Supervise;
using HZ.Supervise.IBLL;
using HZ.Supervise.Model;


public partial class logout : BasePage
{
    IBLL_User iu = BLLFactory.BLL_User();
    KeyOperationLogJG kj; 
    protected void Page_Load(object sender, EventArgs e)
    {
        //AddLog(string.Format("{0}在{注销退出!", CurrentAccount.GetUser().UserID, DateTime.Now));
        CurrentAccount.Goto_Login();
    }
    /// <summary>
    /// 添加日志
    /// </summary>
    /// <param name="msg"></param>
    private void AddLog(string msg)
    {
        kj = new KeyOperationLogJG();
        kj.OperationLogSerialID = Guid.NewGuid().ToString();
        kj.Operator = CurrentAccount.GetUser().UserID;
        kj.OrgID = CurrentAccount.GetUser().Org.OrgID;
        kj.OperateTime = DateTime.Now;
        kj.OperateMessage = msg;
        iu.AddKeyOperationLog(kj);
    }
}

